package com.hospital.insurancedip.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.insurancedip.module.entity.AllPayment;
import com.hospital.insurancedip.module.mapper.AllPaymentMapper;
import com.hospital.insurancedip.module.service.AllPaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @author lvyao
 * @description 预交金查询实现类
 * @date 2020/8/25
 */
@Service
public class AllPaymentServiceImpl extends ServiceImpl<AllPaymentMapper, AllPayment> implements AllPaymentService {
    @Resource
    private AllPaymentMapper allPaymentMapper;


    @Override
    public List<AllPayment> getOutpPrepay(String patientId, String transactType) {
        return allPaymentMapper.getOutpPrepay(patientId,transactType);
    }

    @Override
    public List<AllPayment> getInpPrepay(String patientId, String transactType) {
        return allPaymentMapper.getInpPrepay(patientId,transactType);
    }

    @Override
    public List<AllPayment> getOutpUnsettle(String patientId) {
        return allPaymentMapper.getOutpUnsettle(patientId);
    }

    @Override
    public List<AllPayment> getInpUnsettle(String patientId) {
        return allPaymentMapper.getInpUnsettle(patientId);
    }

    @Override
    public List<AllPayment> getPeisPrepay(String patientId, String transactType) {
        return allPaymentMapper.getPeisPrepay(patientId,transactType);
    }

    @Override
    public List<AllPayment> getPeisUnsettle(String patientId) {
        return allPaymentMapper.getPeisUnsettle(patientId);
    }

    @Override
    public List<AllPayment> getPeisUnitUnsettle(String patientId) {
        return allPaymentMapper.getPeisUnitUnsettle(patientId);

    }
    @Override
    public String getMaxOutpRcptNo(){
        return allPaymentMapper.getMaxOutpRcptNo();
    }

    @Override
    public String getTokenUrl(){return allPaymentMapper.getTokenUrl();}

    @Override
    public String getOutpRefundUrl(){return allPaymentMapper.getOutpRefundUrl();}

    @Override
    public  void  updateApplyRec(String patientId, String esbTransDate, String inpOrOutp, String operNo, String status, Date date){
        allPaymentMapper.updateApplyRec(patientId, esbTransDate, inpOrOutp, operNo, status,date);
    }

    @Override
    public List<AllPayment> getoutpUnbill(String patientId) {
        return allPaymentMapper.getoutpUnbill(patientId);
    }

    @Override
    public List<AllPayment> getinpUnbill(String patientId) {
        return allPaymentMapper.getinpUnbill(patientId);
    }

    @Override
    public List<AllPayment> getpeisUnbill(String patientId) {
        return allPaymentMapper.getpeisUnbill(patientId);
    }

    @Override
    public List<AllPayment> getpeisunitUnbill(String patientId) {
        return allPaymentMapper.getpeisunitUnbill(patientId);
    }

    @Override
    public String getHisAddTak() {
        return allPaymentMapper.getHisAddTak();
    }

}
